/// This is a dictionary table service API<br/>
/// Business logic class defined by OpenAPI in Demo.Interface.spec<br/>
/// Updated Feb 26, 2025 07:49:01
Class Demo.Interface.impl Extends %REST.Impl [ ProcedureBlock ]
{

/// If ExposeServerExceptions is true, then details of internal errors will be exposed.
Parameter ExposeServerExceptions = 0;

/// Returns the top 5 matching dictionary entries with their scores<br/>
/// The method arguments hold values for:<br/>
///     body, String to match<br/>
ClassMethod match(body As %Stream.Object) As %Stream.Object
{
    //(Place business logic here)
    //Do ..%SetStatusCode(<HTTP_status_code>)
    //Do ..%SetHeader(<name>,<value>)
    //Quit (Place response here) ; response may be a string, stream or dynamic object
}

/// Uploads a CSV file to update the base data for matching<br/>
/// The method arguments hold values for:<br/>
///     file, CSV file to upload<br/>
ClassMethod uploadcsv(file As %Stream.Object) As %Stream.Object
{
    //(Place business logic here)
    //Do ..%SetStatusCode(<HTTP_status_code>)
    //Do ..%SetHeader(<name>,<value>)
    //Quit (Place response here) ; response may be a string, stream or dynamic object
}

}
